{%extends file="index/page/layout.tpl"%}

{%block name="sub-head-static"%}
    {%require name="index:static/index/index.less"%}
    {%require name="index:static/index/index.js"%}
    <script>
        P.data('demand_usable_amount',{%$data.demand_usable_amount%});
        P.data('term_usable_amount',{%$data.term_usable_amount%});
    </script>

{%/block%}

{%block name="body-content"%}
    <div class="index-index">
        {%widget name="index:widget/banner/banner.tpl"%}
        <div class="summary">
            <div class="content">
                <h3>什么是真融宝</h3>
                <div class="line line5"></div>
                <div class="desc">
                    <div>真融宝以团购的方式投资P2P平台和相关债权项目，然后转让给用户。</div>
                    <div>个人投资P2P债权有很多限制和风险，真融宝以专业买手的角色为大家投资。</div>
                    <div>可以降低投资门槛；降低P2P平台和项目投资风险；以及在一定范围内实现本息保障。</div>
                </div>

                <div class="statistic">
                    <div class="block">
                        <i class="i1"></i>
                        <span class="value">{%$data.total.user_count%}</span>
                        <span class="name">投资人数</span>
                    </div>
                    <div class="block">
                        <i class="i2"></i>
                        <span class="value">￥{%$data.total.plat_total_buy|format_amount%}</span>
                        <span class="name">投资总额</span>
                    </div>
                    <div class="block">
                        <i class="i3"></i>
                        <span  class="value">{%$data.total.credit_assemble_total%}</span>
                        <span class="name">债权数量</span>
                    </div>
                    <div class="block">
                        <i class="i4"></i>
                        <span class="value">{%$data.total.credit_plat_total%}</span>
                        <span class="name">平台数量</span>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="features">
                    <div class="block">
                        <span class="icon icon1"></span>
                        <h5 class="name">极致便捷</h5>
                        <span class="detail">花1块钱，即可购买全网几百家P2P平台的几千个债权，节省了投资决策时间，并最大程度上降低了投资风险。</span>
                    </div>
                    <div class="block">
                        <span class="icon icon2"></span>
                        <h5 class="name">安全保障</h5>
                        <span class="detail">真融宝用数据分析和智能筛选模型，控制风险；用量化和分散投资，降低风险；用真融宝专门的风险备用金，主动承担风险。</span>
                </div>
                    <div class="block">
                        <span class="icon icon3"></span>
                        <h5 class="name">高额收益</h5>
                        <span class="detail">在真融宝投资活期和定期理财产品，可获得7%~15%的预期年化收益，最高可达到银行活期收益的40倍，货币基金的2~4倍。</span>
                    </div>
                    <div class="clear"></div>
                </div>

                <div class="news">
                    <div class="news-title">
                        <a target="_blank" href="/about/infos?#notice_{%$data.notice.id%}">{%$data.notice.title%}</a>
                    </div>
                    <div class="news-time">{%$data.notice.time|date_format:'%Y-%m-%d'%}</div>
                    <a class="btn btn-blank" href="/about/infos">查看更多</a>
                </div>
            </div>
        </div>


        <div class="products">
            <div class="content">
                <div class="block">
                    <div class="product left demand-block">
                        <div class="product-content">
                            <h4>真融宝活期</h4>
                            <div class="line line2"></div>
                            <div class="features">
                                <div class="year-profit">
                                    <div class="profit-rate">
                                        {%($data.funds.demand.compound_year_rate*100)|format_amount%}<span class="symbol">%</span>
                                    </div>
                                </div>
                                <div class="items">
                                    <div class="item"><i class="icon icon1"></i><span>高额收益</span></div>
                                    <div class="item"><i class="icon icon2"></i><span>一元起购</span></div>
                                    <div class="item"><i class="icon icon3"></i><span>随时支取</span></div>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="recharge">
                                <div class="tip" style="text-align: center">新用户限购<span  class="emphasize">￥10000</span>起</div>
                                <div class="tip">可购份额</div>
                                <div class="credit"></div>
                                <div class="btn-container">
                                    {%if $data.demand_usable_amount<1%}
                                        <a class="btn btn-large btn-disable">每天11:00增加份额</a>
                                    {%else%}
                                        <a class="btn btn-large btn-main" href="/user/buydemand">立即购买</a>
                                    {%/if%}
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="product right term-block">
                        <div class="product-content">
                            <h4>真融宝定期</h4>
                            <div class="line line3"></div>
                            <div class="features">
                                <table>
                                    <tr>
                                        <td width="30%">
                                            <div class="profit-rate">9<span class="symbol">%</span></div>
                                        </td>
                                        <td width="30%">
                                            <div class="profit-rate">10<span class="symbol">%</span></div>
                                        </td>
                                        <td width="30%">
                                            <div class="profit-rate">12<span class="symbol">%</span></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>一个月</td>
                                        <td>三个月</td>
                                        <td>六个月</td>
                                    </tr>
                                </table>
                                <div class="text">一元起投、保本保息</div>
                            </div>
                            <div class="recharge">
                                <div class="tip" style="text-align: center">购买<span class="emphasize">无限额</span></div>
                                <div class="tip">可购份额</div>
                                <div class="credit"></div>
                                <div class="btn-container">
                                    {%if $data.term_usable_amount<1%}
                                        <a class="btn btn-large btn-disable">每天13:00增加份额</a>
                                    {%else%}
                                        <a class="btn btn-large btn-main" href="/index/term">立即购买</a>
                                    {%/if%}

                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>

                {%*
                <div class="block ">
                    <div class="product left iphone6-block">
                        <div class="product-content">
                            <h4>果6宝</h4>
                            <div class="line line1"></div>
                            <div class="info">
                                <div class="tip">只比银行一年定期多一部<span class='emphasize'>iPhone6</span></div>
                                <div class="info-detail">
                                    <div class="text" style="margin-left:60px;">距活动结束还剩</div>
                                    <div class="res-day" style="float: left"></div>
                                    <div class="text">天</div>
                                    <div class="clear"></div>
                                </div>
                                <div style="text-align: center">
                                    <a class="btn btn-large btn-main">立即购买</a>
                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="product right activity-block" style="cursor: default">
                        <div class="product-content">
                            <h4>运营活动</h4>
                            <div class="line line4"></div>
                            <div class="info">
                                <div class="tip">活动时间：11.11-11.30</div>
                                <div class="info-detail">
                                    <img src="../static/index/image/erweima.png" class="erweima">
                                    <div class="tip1">
                                        <div>用微信扫一扫，关注真融宝服务号，免费领红包</div>
                                        <div style="font-size:13px;">注：红包活动会在关注服务号后24小时内推送给你。</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                *%}
            </div>
        </div>

        <div class="user-voice">
            <div class="content">
                <h3>声音</h3>
                <div class="line line5"></div>
                {%widget name="index:widget/uservoice/uservoice.tpl"%}
            </div>
        </div>
    </div>
{%/block%}